package cn.jinshengda.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.jinshengda.entity.*;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmployeeVo {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @Excel(name = "ID")
    private Integer id;

    /**
     * 用户名
     */
    @Excel(name = "名字")
    private String name;
    /*
    手机号码
     */
    @Excel(name = "手机号",width = 15)
    private String phone;

    @Excel(name = "年龄")
    private Integer age;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String sex;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号",width = 20)
    private String idcard;

    /**
     * 血型
     */
    @Excel(name = "血型")
    private String blood;

    /**
     * 星座
     */
    @Excel(name = "星座")
    private String constellation;

    /**
     * 爱好
     */
    @Excel(name = "爱好")
    private String hobby;

    /**
     * 出生日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期",exportFormat = "yyyy年MM月dd日",width = 20)
    private Date born_date;

    /**
     * 地址
     */
    @Excel(name = "地址")
    private String address;

    /**
     * 过敏史
     */
    @Excel(name = "过敏史")
    private String abhorrence;

    /**
     * 政治面貌
     */
    @Excel(name = "政治面貌")
    private String political_status;

    /**
     * 民族
     */
    @Excel(name = "民族")
    private String ethnicity;
    /*
    工作年限
     */
    @Excel(name = "工作年限")
    private Integer worktime;
    /**
     * 身高
     */
    @Excel(name = "身高")
    private Double height;

    /**
     * 婚否
     */
    @Excel(name = "婚否")
    private String maritalStatus;

    /**
     * 紧急联系人
     */
    @Excel(name = "紧急联系人")
    private String emergencyContact;

    /**
     * 紧急联系人电话
     */
    @Excel(name = "紧急联系人电话",width = 15)
    private String emergency_call;

    /**
     * 入职时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职时间",exportFormat = "yyyy年MM月dd日",width = 20)
    private Date entryTime;


    /**
     * 离职时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离职时间",exportFormat = "yyyy年MM月dd日",width = 20)
    private Date separationTime;

    /**
     * 离职原因
     */
    @Excel(name = "离职原因")
    private String separationReason;

    /**
     * 职位id
     */
    @JsonIgnore
    private Integer positionId;
    @TableField(exist = false)
    @Excel(name = "岗位名")
    private String positionName;

    /**
     * 部门id
     */
    @JsonIgnore
    private Integer departmentId;

    /**
     * 学历id
     */
    @JsonIgnore
    private Integer degreeId;
    /**
     * 学历名
     */
    @Excel(name = "学历")
    private String education;

    @TableField(exist = false)
    private Degree degree;

    /**
     * 履历
     */
    @ExcelCollection(name = "履历")
    private List<Resume> resume;

    @TableField(exist = false)
    private List<DailyPaper> dailyPapers;

    @TableField(exist = false)
    private List<MonthlyPaper> monthlyPapers;


    /**
     * 备注
     */
    private String remark;
    @TableField(exist = false)
    @Excel(name = "部门")
    private String department;
}
